'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    /**
     * Add altering commands here.
     *
     * Example:
     * await queryInterface.createTable('users', { id: Sequelize.INTEGER });
     */
    const { ENUM } = Sequelize;
    await queryInterface.changeColumn('users','sex',{
      type:ENUM,
      values:['male','female','unknown']
    })
  },

  down: async (queryInterface, Sequelize) => {
    /**
     * Add reverting commands here.
     *
     * Example:
     * await queryInterface.dropTable('users');
     */
     const { ENUM } = Sequelize;
     await queryInterface.changeColumn('users','sex',{
       type:ENUM,
       values:['man','female','unknown']
     })
  }
};
